{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <form class="form form-horizontal" id="form" method="post" action="{:\\think\\Request::instance()->baseUrl()}">
        <input type="hidden" name="id" value="{$vo.id ?? ''}">
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>酒店名称：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" placeholder="酒店名称" name="hotel_name" value="{$vo.hotel_name ?? ''}"  datatype="*" nullmsg="酒店名称不能为空" errormsg="酒店名称格式错误">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>酒店位置：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" placeholder="酒店位置" name="hotel_location" value="{$vo.hotel_location ?? ''}"  datatype="*" nullmsg="酒店位置不能为空" errormsg="酒店位置格式错误">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">酒店类型：</label>
            <select name="hotel_type" style="width:502px;height:31px;margin-left: 15px;" class="formControls col-xs-6 col-sm-6">
                {if $vo.hotel_type == "豪华"}
                <option value="豪华" selected>豪华</option>
                <option value="舒适">舒适</option>
                {else /}
                <option value="舒适" selected>舒适</option>
                <option value="豪华" >豪华</option>
                {/if}
            </select>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">酒店经理：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" placeholder="酒店经理" name="hotel_manager" value="{$vo.hotel_manager ?? ''}">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">联系电话：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" placeholder="联系电话" name="phone" value="{$vo.phone ?? ''}">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <!--<div class="row cl">-->
            <!--<label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>酒店经理：</label>-->
            <!--<div class="formControls col-xs-6 col-sm-6">-->
                <!--<input type="text" class="input-text" placeholder="酒店经理" name="hotel_manager" value="{$vo.hotel_manager ?? ''}"  datatype="*" nullmsg="酒店经理不能为空" errormsg="酒店经理格式错误">-->
            <!--</div>-->
            <!--<div class="col-xs-3 col-sm-3"></div>-->
        <!--</div>-->
        <!--<div class="row cl">-->
            <!--<label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>联系电话：</label>-->
            <!--<div class="formControls col-xs-6 col-sm-6">-->
                <!--<input type="text" class="input-text" placeholder="联系电话" name="phone" value="{$vo.phone ?? ''}"  datatype="*" nullmsg="联系电话不能为空" errormsg="联系电话格式错误">-->
            <!--</div>-->
            <!--<div class="col-xs-3 col-sm-3"></div>-->
        <!--</div>-->
        <!--<div class="row cl">-->
            <!--<label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>开业时间：</label>-->
            <!--<div class="formControls col-xs-6 col-sm-6">-->
                <!--<input type="text" class="input-text Wdate" autocomplete="off" placeholder="开业时间" name="open_time"-->
                       <!--value="{$vo.open_time ?date('Y-m-d',$vo['open_time']): ''}" {literal}-->
                       <!--onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" {/literal}  datatype="*" nullmsg="开业时间不能为空" errormsg="开业时间格式错误">-->
            <!--</div>-->
            <!--<div class="col-xs-3 col-sm-3"></div>-->
        <!--</div>-->
        <!--<div class="row cl">-->
            <!--<label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>装修时间：</label>-->
            <!--<div class="formControls col-xs-6 col-sm-6">-->
                <!--<input type="text" class="input-text Wdate" autocomplete="off" placeholder="装修时间" name="decorate_time"-->
                       <!--value="{$vo.decorate_time ?date('Y-m-d',$vo['decorate_time']): ''}" {literal}-->
                       <!--onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" {/literal}  datatype="*" nullmsg="装修时间不能为空" errormsg="装修时间格式错误">-->
            <!--</div>-->
            <!--<div class="col-xs-3 col-sm-3"></div>-->
        <!--</div>-->
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">备注：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <textarea class="textarea" placeholder="备注" name="remark" value="{$vo.remark ?? ''}" >{$vo.remark ?? ''}</textarea>
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <button type="submit" class="btn btn-primary radius">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>
                <button type="button" class="btn btn-default radius ml-20" onClick="layer_close();">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
    <!--<p class="bg-1 bk-gray" style="text-align: center;margin-top: 20px;margin-bottom: 0px;font-size: 18px;padding: 3px">酒店房型</p>-->
    <!--<div class="cl pd-5 bg-1 bk-gray">-->
        <!--<form class="form form-horizontal" id="add1" method="post" onsubmit="return false">-->
            <!--<label><span class="c-red">*</span>房型名称：</label>-->
            <!--&nbsp;&nbsp;<input type="text" class="input-text" style="width:200px;vertical-align: top;"  placeholder="房型名称" name="room_name" value="{$vo.room_name ?? ''}"  datatype="*" nullmsg="房型名称不能为空" errormsg="房型名称格式错误">-->

            <!--<label><span class="c-red">*</span>备注：</label>-->
            <!--<input type="text" class="input-text"  style="width:300px;vertical-align: top;"  placeholder="备注" name="remark" value="{$vo.remark ?? ''}" >-->
            <!--<button type="submit" class="btn btn-primary radius" onclick="addType()">&nbsp;&nbsp;添加&nbsp;&nbsp;</button>-->
        <!--</form>-->
    <!--</div>-->

</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__LIB__/My97DatePicker/WdatePicker.js"></script>
<script>
    $(function () {
;

        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });

        $("#form").Validform({
            tiptype: 2,
            ajaxPost: true,
            showAllError: true,
            callback: function (ret){
                ajax_progress(ret);
            }
        });
    })
</script>
{/block}
